import { ref } from 'vue';
//基础参数
export const baseParm = ref({

});
//临时按钮--接口获取的默认参数 function  name
export const buttonLinshi = ref([
    {
        "displayNo": 0,
        "function": "add",
        "name": "创建任务",
        "enName": "add",
        "icon": "el-icon-plus",
        "type": "primary",
        "newIcon": "{}"
    },
    {
        "displayNo": 0,
        "function": "download",
        "name": "导入",
        "enName": "download",
        "icon": "el-icon-download",
        "type": "primary",
        "newIcon": "{}",
        "permission":'v5-import'
    },
    {
        "displayNo": 0,
        "function": "upload",
        "name": "导出",
        "enName": "upload",
        "icon": "el-icon-upload2",
        "type": "primary",
        "newIcon": "{}"
    },
]);
//自定义按钮项--必填项   function  name
export const customButton = ref([
    {
        "displayNo": 0,
        "function": "batchOperation",
        "name": "批量操作",
        "enName": "batchOperation",
        "icon": "",
        "type": "",
        "newIcon": "{}",
        "iconType": 'cus',
        "child":[
            {"icon": "el-icon-video-play", "name": "启动","function": "start"},
            {"icon": "el-icon-video-play", "name": "运行","function": "run"},
            {"icon": "el-icon-video-play", "name": "停止","function": "stop"},
            {"icon": "el-icon-video-play", "name": "重置","function": "reset"},
            {"icon": "el-icon-video-play", "name": "销毁","function": "destroy"},
            {"icon": "el-icon-video-play", "name": "更新","function": "update"},
            {"icon": "el-icon-video-play", "name": "子链路操作","function": "sublink"}
        ]
    },
])
//高级搜索列表 --必填项   param  value type pl
// span 默认4
export const advancedSearchList = ref([
])